package com.xjoyt.pay.master.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.interfaces.DistributorCheckoutContract;
import com.xjoyt.pay.master.params.DistributorCheckoutPageParam;
import com.xjoyt.pay.master.po.DistributorCheckout;
import com.xjoyt.pay.master.services.DistributorCheckoutService;

@RestController
@RequestMapping("distributorCheckout")
public class DistributorCheckoutController extends AbstractController implements DistributorCheckoutContract {

	@Autowired
	private DistributorCheckoutService service;

	@Override
	public PageResult<DistributorCheckout> loadPage(@RequestBody PageParam<DistributorCheckoutPageParam> param) {
		return service.loadPage(param);
	}

}
